<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<h:outputStylesheet library="css" name="headers_style.css" />
	<h:form>
		<h:panelGrid columns="2" rules="groups" styleClass="headerPanel"
			columnClasses="firstHeaderColumn, secondHeaderColumn">
			<h:panelGroup>
				<h:panelGrid cellspacing="5" columns="5" style="margin-left:20%;">
					<h:panelGroup>
						<h:outputText styleClass="loginProperties" value="Login:"
							rendered="#{!clientLoginBean.logged}" />
						<h:inputText value="#{clientLoginBean.login}"
							rendered="#{!clientLoginBean.logged}" />
					</h:panelGroup>
					<h:panelGroup>
						<h:outputText styleClass="loginProperties" value="Hasło:"
							rendered="#{!clientLoginBean.logged}" />
						<h:inputSecret value="#{clientLoginBean.password}"
							rendered="#{!clientLoginBean.logged}" />
					</h:panelGroup>
					<h:commandButton value="Zaloguj" action="#{clientLoginBean.login}"
						rendered="#{!clientLoginBean.logged}" />
					<h:commandButton value="Wyloguj" action="#{clientLoginBean.logout}"
						rendered="#{clientLoginBean.logged}" />
					<h:commandButton value="Załóż konto" action="registerPage"
						rendered="#{!clientLoginBean.logged}" />
				</h:panelGrid>
			</h:panelGroup>
			<h:panelGroup>
				<!--				<h:outputText styleClass="loginProperties" value="Wybierz język:" />-->
				<!--				<h:selectOneMenu value="#{languageBean.localeCode}" id="languages"-->
				<!--					onchange="submit()">-->
				<!--					<f:selectItems value="#{headerBean.languages}" />-->
				<!--				</h:selectOneMenu>-->
				<h:outputText styleClass="loginProperties" value="Wybierz skina:" />
				<h:selectOneMenu value="#{skinBean.skin}" id="skins"
					onchange="submit()">
					<f:selectItems value="#{headerBean.skins}" />
				</h:selectOneMenu>
			</h:panelGroup>

		</h:panelGrid>
	</h:form>
</ui:composition>
</html>
